package com.zhixi100.orderservice.feign;

import com.zhixi100.framework.common.ObjectRestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "product-service", fallback = ProductFeignFallback.class)
public interface ProductFeign {

    @GetMapping("/v1/find/product/{productId}")
    ObjectRestResponse findProduct(@PathVariable("productId") int productId);

    @GetMapping("/v1/update/product/{productId}")
    ObjectRestResponse reduceStore(@PathVariable("productId") int productId);
}
